cmake_minimum_required(VERSION 3.12)

project(learn-opengl LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

if(NOT CMAKE_BUILD_TYPE)
  set(CMAKE_BUILD_TYPE Release CACHE STRING
      "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel."
      FORCE)
endif()

include_directories(
	${CMAKE_SOURCE_DIR}
	${CMAKE_SOURCE_DIR}/deps/include
	${CMAKE_SOURCE_DIR}/deps/opengl/include
)

link_directories(
	${CMAKE_SOURCE_DIR}/deps/opengl/lib/x64
)

link_libraries(
	glfw3
)

add_subdirectory(hello-window)
add_subdirectory(hello-triangle)
add_subdirectory(hello-shader)
add_subdirectory(hello-texture)
add_subdirectory(hello-transformation)